/* 博客内容页特定样式 */

/* 文章标题区域 */
.post-hero {
    padding: 160px 32px 60px;
    text-align: center;
    position: relative;
}

.post-title-container {
    max-width: 800px;
    margin: 0 auto;
}

.post-hero h1 {
    font-family: 'Arial Black', sans-serif;
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #f1f1f1;
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}

.post-meta-main {
    color: #b2bec3;
    font-size: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-meta-main i {
    color: #00cec9;
    margin-right: 8px;
}

/* 文章内容容器 */
.post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.post-content-main {
    width: 70%;
}

.post-sidebar {
    width: 30%;
}

/* 文章内容样式 */
.post-featured-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.post-featured-image:hover img {
    transform: scale(1.02);
}

.post-content {
    color: #e1e1e1;
    font-size: 18px;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    margin: 40px 0 20px;
    color: #00cec9;
    position: relative;
    padding-bottom: 12px;
}

.post-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #6c5ce7;
    border-radius: 3px;
}

.post-content h3 {
    font-family: 'Arial Black', sans-serif;
    font-size: 22px;
    margin: 30px 0 15px;
    color: #ff7675;
}

.post-content ul, .post-content ol {
    margin: 0 0 24px 20px;
    padding-left: 20px;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin-bottom: 12px;
}

.post-content blockquote {
    border-left: 4px solid #6c5ce7;
    padding: 15px 20px;
    margin: 24px 0;
    background: rgba(108, 92, 231, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #b2bec3;
}

/* 标签和分享 */
.post-tags-main {
    margin: 40px 0 20px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tags-main i {
    color: #00cec9;
}

.post-share {
    margin: 20px 0 40px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-share i {
    color: #ff7675;
}

.share-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b2bec3;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    border-color: rgba(108, 92, 231, 0.3);
}

/* 作者信息 */
.post-author-bio {
    margin: 40px 0;
    padding: 25px;
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.8), rgba(15, 16, 20, 0.9));
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 206, 201, 0.3);
}

.author-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #00cec9;
}

.author-info p {
    color: #b2bec3;
    margin: 0;
}

/* 文章导航 */
.post-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
}

.prev-post, .next-post {
    width: 48%;
}

.prev-post a, .next-post a {
    color: #b2bec3;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.prev-post a {
    justify-content: flex-start;
}

.next-post a {
    justify-content: flex-end;
}

.prev-post a:hover, .next-post a:hover {
    color: #00cec9;
}

.prev-post i, .next-post i {
    margin: 0 8px;
}

/* 评论区样式 */
.post-comments {
    margin-top: 60px;
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.8), rgba(15, 16, 20, 0.9));
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.post-comments h3 {
    font-family: 'Arial Black', sans-serif;
    font-size: 24px;
    margin-bottom: 24px;
    color: #f1f1f1;
    display: flex;
    align-items: center;
}

.post-comments h3 i {
    color: #ff7675;
    margin-right: 12px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #f1f1f1;
    font-size: 16px;
    min-height: 120px;
    resize: vertical;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.submit-comment {
    background: linear-gradient(45deg, #6c5ce7, #00cec9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.submit-comment i {
    margin-right: 8px;
}

.submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.comments-list {
    margin-top: 40px;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment:last-child {
    border-bottom: none;
}

.comment.reply {
    margin-left: 50px;
    padding-left: 20px;
    border-left: 2px solid rgba(108, 92, 231, 0.2);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    float: left;
    margin-right: 15px;
}

.comment-content {
    overflow: hidden;
}

.comment-header {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-author {
    font-weight: 600;
    color: #f1f1f1;
}

.author-badge {
    background: #6c5ce7;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.comment-time {
    color: #b2bec3;
    font-size: 14px;
}

.comment p {
    color: #e1e1e1;
    margin-bottom: 15px;
}

.reply-btn {
    background: transparent;
    border: none;
    color: #00cec9;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.reply-btn i {
    margin-right: 5px;
}

.reply-btn:hover {
    color: #6c5ce7;
}

.load-more-comments {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b2bec3;
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.load-more-comments i {
    margin-left: 8px;
}

.load-more-comments:hover {
    border-color: #6c5ce7;
    color: #6c5ce7;
}

/* 侧边栏样式 */
.sidebar-widget {
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.8), rgba(15, 16, 20, 0.9));
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sidebar-widget h3 {
    font-family: 'Arial Black', sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: #00cec9;
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-widget h3 i {
    margin-right: 10px;
    color: #ff7675;
}

/* 热门文章列表 */
.popular-posts {
    list-style: none;
}

.popular-posts li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.popular-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-posts img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.popular-posts a {
    color: #e1e1e1;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.popular-posts a:hover {
    color: #00cec9;
}

.popular-posts span {
    display: inline-block;
    margin-top: 8px;
    color: #b2bec3;
    font-size: 14px;
}

.popular-posts span i {
    color: #6c5ce7;
    margin-right: 5px;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud .tag {
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 20px;
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    border: 1px solid rgba(108, 92, 231, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud .tag:hover {
    background: rgba(108, 92, 231, 0.2);
    transform: translateY(-2px);
}

/* 分类列表 */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.category-list a {
    color: #e1e1e1;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #00cec9;
}

.category-list .count {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 14px;
    color: #b2bec3;
}

/* 订阅组件 */
.subscribe-form {
    margin-top: 20px;
}

.subscribe-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #f1f1f1;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.subscribe-form input:focus {
    outline: none;
    border-color: #00cec9;
    box-shadow: 0 0 0 2px rgba(0, 206, 201, 0.2);
}

.subscribe-form button {
    width: 100%;
    background: linear-gradient(45deg, #ff7675, #6c5ce7);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    box-shadow: 0 5px 15px rgba(255, 118, 117, 0.3);
}

.privacy-note {
    margin-top: 15px;
    font-size: 14px;
    color: #b2bec3;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .post-container {
        flex-direction: column;
    }

    .post-content-main, .post-sidebar {
        width: 100%;
    }

    .post-hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .post-hero h1 {
        font-size: 30px;
    }

    .post-meta-main {
        flex-direction: column;
        gap: 10px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .prev-post, .next-post {
        width: 100%;
    }

    .comment.reply {
        margin-left: 20px;
    }
}